﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.Serialization;
using SGRapidForm.Common;

namespace SGDemo.OA.Entity
{
    /// <summary>
    /// File: NewsENT.cs 数据实体基类
    /// </summary>
    /// <remarks>
    /// <para>Author: "Ralph"</para>
    /// <para>Date: "2012-11-10"</para>
    /// <para>Version: "V1.0"</para>
    /// <para>Copyright: "神冠软件"</para>
    /// </remarks>
    [DataContract]
    public class NewsENT
    {
        #region Fields
        private string _keyid;
        private string _title;
        private string _noticeObject;
        private string _responsibility;
        private string _publisher;
        private DateTime _publishDate;
        private DateTime _expireDate;
        private string _content;
        private string _stateCode;
        private string _stateName;
        #endregion

        #region Contructors
        public NewsENT()
        {
        }

        public NewsENT
        (
            string keyid,
            string title,
            string noticeObject,
            string responsibility,
            string publisher,
            DateTime publishDate,
            DateTime expireDate,
            string content,
            string stateCode,
            string stateName
        )
        {
            _keyid = keyid;
            _title = title;
            _noticeObject = noticeObject;
            _responsibility = responsibility;
            _publisher = publisher;
            _publishDate = publishDate;
            _expireDate = expireDate;
            _content = content;
            _stateCode = stateCode;
            _stateName = stateName;

        }
        #endregion

        #region Public Properties

        /// <summary>
        /// 
        /// </summary>
        [DataMember]
        public string Keyid
        {
            get { return _keyid; }
            set { _keyid = value; }
        }

        /// <summary>
        /// 
        /// </summary>
        [DataMember]
        public string Title
        {
            get { return _title; }
            set { _title = value; }
        }

        /// <summary>
        /// 
        /// </summary>
        [DataMember]
        public string NoticeObject
        {
            get { return _noticeObject; }
            set { _noticeObject = value; }
        }

        /// <summary>
        /// 
        /// </summary>
        [DataMember]
        public string Responsibility
        {
            get { return _responsibility; }
            set { _responsibility = value; }
        }

        /// <summary>
        /// 
        /// </summary>
        [DataMember]
        public string Publisher
        {
            get { return _publisher; }
            set { _publisher = value; }
        }

        /// <summary>
        /// 
        /// </summary>
        [DataMember]
        public DateTime PublishDate
        {
            get { return _publishDate; }
            set { _publishDate = value; }
        }

        /// <summary>
        /// 
        /// </summary>
        [DataMember]
        public DateTime ExpireDate
        {
            get { return _expireDate; }
            set { _expireDate = value; }
        }

        /// <summary>
        /// 
        /// </summary>
        [DataMember]
        public string Content
        {
            get { return _content; }
            set { _content = value; }
        }

        /// <summary>
        /// 
        /// </summary>
        [DataMember]
        public string StateCode
        {
            get { return _stateCode; }
            set { _stateCode = value; }
        }

        /// <summary>
        /// 
        /// </summary>
        [DataMember]
        public string StateName
        {
            get { return _stateName; }
            set { _stateName = value; }
        }
        #endregion
    }
}
